home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / xw2.000 / xw2 / xw / csource / xbwparser.tab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-14  |  66.3 KB  |  2,127 lines

  1.  
  2. /*  A Bison parser, made from xbwparser.y with Bison version GNU Bison version 1.22
  3.   */
  4.  
  5. #define YYBISON 1  /* Identify Bison output.  */
  6.  
  7. #define    ENDFILE    258
  8. #define    IF    259
  9. #define    THEN    260
  10. #define    NULLPTR    261
  11. #define    NPTR    262
  12. #define    SPTR    263
  13. #define    IPTR    264
  14. #define    DPTR    265
  15. #define    STR    266
  16. #define    NUM    267
  17. #define    STRVAR    268
  18. #define    NUMVAR    269
  19. #define    LOPRE    270
  20. #define    NEG    271
  21. #define    HIPRE    272
  22.  
  23. #line 1 "xbwparser.y"
  24.  
  25. /*{{{  */
  26. #include <stdlib.h>
  27. #include <stdio.h>
  28. #include <string.h>
  29. #include <math.h>
  30. #include "xbw.h"
  31. #include "xbwtype.h"
  32.  
  33. /*{{{F xbwtype.h*/
  34. /*:::F xbwtype.h*/
  35. /*}}}  */
  36.  
  37. #define XbWFSy_bf1_printf(a) XbWFSy_bf_printf("%s",a)
  38.  
  39. char scratch[scratchmax][200];
  40. int scratchno=0;
  41. int IFTHEN_val = 1;
  42.  
  43. int errcnt=0;
  44.  
  45. void *(fpar)[100];
  46. double (fpard)[100];
  47. int (fpart)[100];
  48. int fpar_count=0;
  49. char func_lastname[100]="!!Uninitialized!!";
  50.  
  51. #define MAX_mac_lvl 100
  52. #define MAX_fpar     100
  53.  
  54. void *(macpar)[MAX_mac_lvl][MAX_fpar];
  55. int (macpar_type)[MAX_mac_lvl][MAX_fpar];
  56. int macparlvl=1;
  57. int macpar_count=0;
  58.  
  59. void fpar_add(
  60.                  int type,
  61.                  char *txt,
  62.                  double dval,
  63.                  int ival,
  64.                  XbWDDb_DbIVar *ptr);
  65. double fpar_call(char *name);
  66. int macpar_call(char *name);
  67.  
  68. /*}}}  */
  69.  
  70.  
  71. #line 48 "xbwparser.y"
  72. typedef union { XbWDDb_DbIVar *ptr; char *strp; double val; symrec *tptr; } YYSTYPE;
  73.  
  74. #ifndef YYLTYPE
  75. typedef
  76.   struct yyltype
  77.     {
  78.       int timestamp;
  79.       int first_line;
  80.       int first_column;
  81.       int last_line;
  82.       int last_column;
  83.       char *text;
  84.    }
  85.   yyltype;
  86.  
  87. #define YYLTYPE yyltype
  88. #endif
  89.  
  90. #include <stdio.h>
  91.  
  92. #ifndef __cplusplus
  93. #ifndef __STDC__
  94. #define const
  95. #endif
  96. #endif
  97.  
  98.  
  99.  
  100. #define    YYFINAL        182
  101. #define    YYFLAG        -32768
  102. #define    YYNTBASE    36
  103.  
  104. #define YYTRANSLATE(x) ((unsigned)(x) <= 272 ? yytranslate[x] : 45)
  105.  
  106. static const char yytranslate[] = {     0,
  107.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  108.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  109.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  110.      2,     2,    20,     2,     2,     2,     2,     2,     2,    27,
  111.     26,    23,    22,    25,    21,    30,    24,     2,     2,     2,
  112.      2,     2,     2,     2,     2,     2,     2,    31,    32,    19,
  113.     17,    18,    16,    33,     2,     2,     2,     2,     2,     2,
  114.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  115.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  116.     29,     2,    28,     2,     2,     2,     2,     2,     2,     2,
  117.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  118.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  119.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  120.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  121.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  122.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  123.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  124.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  125.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  126.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  127.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  128.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  129.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  130.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  131.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  132.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  133.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  134.     34,    35
  135. };
  136.  
  137. #if YYDEBUG != 0
  138. static const short yyprhs[] = {     0,
  139.      0,     1,     4,     6,     8,    14,    20,    26,    32,    35,
  140.     40,    45,    49,    53,    57,    62,    69,    75,    81,    87,
  141.     93,    99,   105,   114,   123,   126,   131,   134,   137,   140,
  142.    142,   144,   146,   152,   154,   160,   166,   172,   174,   178,
  143.    183,   188,   192,   196,   201,   206,   211,   215,   219,   223,
  144.    227,   230,   234,   238,   243,   247,   251,   256,   261,   266,
  145.    268,   270,   272,   274,   276,   280,   284
  146. };
  147.  
  148. static const short yyrhs[] = {    -1,
  149.     36,    37,     0,    32,     0,     3,     0,    14,    31,    17,
  150.     43,    32,     0,    14,    22,    17,    43,    32,     0,    13,
  151.     31,    17,    44,    32,     0,    13,    22,    17,    43,    32,
  152.      0,    38,    32,     0,    11,    27,    26,    32,     0,    31,
  153.     39,    26,    32,     0,    16,    38,    32,     0,    16,    43,
  154.     32,     0,    16,    44,    32,     0,     4,    27,    43,    26,
  155.      0,    33,    11,    27,    39,    26,    32,     0,    33,    11,
  156.     27,    26,    32,     0,    40,    31,    17,    40,    32,     0,
  157.     41,    31,    17,    44,    32,     0,    42,    31,    17,    43,
  158.     32,     0,    42,    22,    17,    43,    32,     0,    42,    21,
  159.     17,    43,    32,     0,    42,    22,    17,    43,    29,    43,
  160.     28,    32,     0,    42,    21,    17,    43,    29,    43,    28,
  161.     32,     0,     1,    32,     0,    11,    27,    39,    26,     0,
  162.     39,    44,     0,    39,    43,     0,    39,    40,     0,    44,
  163.      0,    43,     0,    40,     0,     7,    31,    44,    30,    44,
  164.      0,     6,     0,     8,    31,    44,    30,    44,     0,     9,
  165.     31,    44,    30,    44,     0,    10,    31,    44,    30,    44,
  166.      0,    12,     0,    27,    14,    26,     0,    43,    17,    17,
  167.     43,     0,    43,    20,    17,    43,     0,    43,    19,    43,
  168.      0,    43,    18,    43,     0,    43,    19,    17,    43,     0,
  169.     43,    18,    17,    43,     0,    43,    19,    18,    43,     0,
  170.     43,    22,    43,     0,    43,    21,    43,     0,    43,    24,
  171.     43,     0,    43,    23,    43,     0,    21,    43,     0,    27,
  172.     43,    26,     0,    29,    43,    28,     0,    44,    17,    17,
  173.     44,     0,    44,    18,    44,     0,    44,    19,    44,     0,
  174.     44,    18,    17,    44,     0,    44,    19,    17,    44,     0,
  175.     44,    20,    17,    44,     0,    38,     0,    42,     0,    11,
  176.      0,    41,     0,    13,     0,    44,    25,    44,     0,    27,
  177.     44,    26,     0,    29,    44,    28,     0
  178. };
  179.  
  180. #endif
  181.  
  182. #if YYDEBUG != 0
  183. static const short yyrline[] = { 0,
  184.     89,    90,    92,    94,    95,    96,    97,    98,   103,   104,
  185.    105,   106,   109,   110,   112,   114,   115,   117,   138,   160,
  186.    188,   216,   244,   278,   312,   314,   315,   317,   318,   319,
  187.    320,   321,   323,   326,   332,   336,   339,   343,   344,   345,
  188.    346,   347,   348,   349,   350,   351,   352,   353,   354,   355,
  189.    356,   357,   358,   359,   360,   361,   362,   363,   364,   365,
  190.    366,   395,   398,   419,   422,   433,   436
  191. };
  192.  
  193. static const char * const yytname[] = {   "$","error","$illegal.","ENDFILE",
  194. "IF","THEN","NULLPTR","NPTR","SPTR","IPTR","DPTR","STR","NUM","STRVAR","NUMVAR",
  195. "LOPRE","'?'","'='","'>'","'<'","'!'","'-'","'+'","'*'","'/'","','","')'","'('",
  196. "']'","'['","'.'","':'","';'","'@'","NEG","HIPRE","input","statement","funcresult",
  197. "funcpar","nptrexp","sptrexp","iptrexp","numexp","strexp",""
  198. };
  199. #endif
  200.  
  201. static const short yyr1[] = {     0,
  202.     36,    36,    37,    37,    37,    37,    37,    37,    37,    37,
  203.     37,    37,    37,    37,    37,    37,    37,    37,    37,    37,
  204.     37,    37,    37,    37,    37,    38,    39,    39,    39,    39,
  205.     39,    39,    40,    40,    41,    42,    42,    43,    43,    43,
  206.     43,    43,    43,    43,    43,    43,    43,    43,    43,    43,
  207.     43,    43,    43,    43,    43,    43,    43,    43,    43,    43,
  208.     43,    44,    44,    44,    44,    44,    44
  209. };
  210.  
  211. static const short yyr2[] = {     0,
  212.      0,     2,     1,     1,     5,     5,     5,     5,     2,     4,
  213.      4,     3,     3,     3,     4,     6,     5,     5,     5,     5,
  214.      5,     5,     8,     8,     2,     4,     2,     2,     2,     1,
  215.      1,     1,     5,     1,     5,     5,     5,     1,     3,     4,
  216.      4,     3,     3,     4,     4,     4,     3,     3,     3,     3,
  217.      2,     3,     3,     4,     3,     3,     4,     4,     4,     1,
  218.      1,     1,     1,     1,     3,     3,     3
  219. };
  220.  
  221. static const short yydefact[] = {     1,
  222.      0,     0,     4,     0,    34,     0,     0,     0,     0,     0,
  223.      0,     0,     0,     0,     3,     0,     2,     0,     0,     0,
  224.      0,    25,     0,     0,     0,     0,     0,     0,     0,     0,
  225.      0,     0,    62,    38,    64,     0,     0,     0,    60,    63,
  226.     61,     0,     0,    60,     0,    32,    31,    30,     0,     9,
  227.      0,     0,     0,     0,     0,     0,     0,    62,     0,     0,
  228.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  229.      0,    51,     0,     0,     0,     0,     0,    12,     0,     0,
  230.      0,     0,     0,     0,     0,     0,    13,     0,     0,     0,
  231.      0,     0,    14,     0,    29,    28,    27,     0,     0,     0,
  232.      0,     0,     0,    15,     0,     0,     0,     0,     0,     0,
  233.     10,    26,     0,     0,     0,     0,    39,    52,    66,    53,
  234.     67,     0,     0,    43,     0,     0,    42,     0,    48,    47,
  235.     50,    49,     0,     0,    55,     0,    56,     0,    65,    11,
  236.      0,     0,     0,     0,     0,     0,     0,    33,    35,    36,
  237.     37,     8,     7,     6,     5,    40,    45,    44,    46,    41,
  238.     54,    57,    58,    59,    17,     0,    18,    19,     0,    22,
  239.      0,    21,    20,    16,     0,     0,     0,     0,    24,    23,
  240.      0,     0
  241. };
  242.  
  243. static const short yydefgoto[] = {     1,
  244.     17,    44,    66,    46,    40,    41,    47,    57
  245. };
  246.  
  247. static const short yypact[] = {-32768,
  248.      5,   -29,-32768,    20,-32768,    -9,    28,    30,    32,    56,
  249.      4,    24,   318,   289,-32768,    23,-32768,    55,    60,    71,
  250.     43,-32768,   318,   165,   165,   165,   165,   154,    81,    91,
  251.     94,    97,    95,-32768,-32768,   318,   122,   318,    93,-32768,
  252. -32768,   363,   435,-32768,   193,-32768,   507,   191,   110,-32768,
  253.    123,   127,   131,   135,   136,   487,   191,-32768,   165,   165,
  254.      3,    52,    98,   116,   125,   217,   318,   165,   318,   318,
  255.    289,-32768,   128,   497,   101,   451,   214,-32768,   138,   296,
  256.     31,   142,   318,   318,   318,   318,-32768,   153,    67,    68,
  257.    155,   165,-32768,   150,-32768,   507,   191,   241,    44,   165,
  258.    318,   318,   318,-32768,    75,   -21,   165,   165,   165,   165,
  259. -32768,-32768,   379,    -5,   395,   411,-32768,-32768,-32768,-32768,
  260. -32768,   318,   318,   235,   318,   318,   235,   318,     7,     7,
  261. -32768,-32768,   165,   165,   149,   165,   149,   165,-32768,-32768,
  262.    152,   265,   158,    37,   331,   347,   427,   149,-32768,   149,
  263.    149,-32768,-32768,-32768,-32768,   507,   507,   507,   235,   507,
  264.    149,   149,   149,   149,-32768,   159,-32768,-32768,   318,-32768,
  265.    318,-32768,-32768,-32768,   463,   475,   161,   163,-32768,-32768,
  266.    185,-32768
  267. };
  268.  
  269. static const short yypgoto[] = {-32768,
  270. -32768,    16,   -12,     0,   195,   196,   -13,    79
  271. };
  272.  
  273.  
  274. #define    YYLAST        531
  275.  
  276.  
  277. static const short yytable[] = {    42,
  278.     19,    45,    22,    92,   181,     2,   121,     3,     4,    56,
  279.      5,     6,     7,     8,     9,    10,    18,    11,    12,    92,
  280.     13,    24,    72,    74,    76,    29,   153,    92,    39,    85,
  281.     86,    96,   107,    49,    30,    14,    15,    16,     7,     8,
  282.      9,    33,    34,    35,    95,    31,    23,   125,   126,     5,
  283.      6,    36,    96,   113,    32,   115,   116,    37,    25,    38,
  284.     26,    92,    27,    53,    54,    95,   124,   127,   168,   129,
  285.    130,   131,   132,    55,     7,     7,    92,    58,    58,    35,
  286.     35,   108,    28,   134,   136,   142,    50,   145,   146,   147,
  287.     51,    43,    48,    59,    59,    60,    60,    67,   143,    92,
  288.    119,    52,    61,    62,    63,    64,    48,    68,   156,   157,
  289.     69,   158,   159,    70,   160,    75,    77,    88,    89,    90,
  290.     91,    71,    92,    97,    78,    92,   119,   109,    96,     7,
  291.      8,     9,    33,    34,    35,    73,    98,   105,   106,    99,
  292.     92,    95,    36,   100,    97,   110,   114,   101,    37,    48,
  293.     38,   102,   103,   117,   122,   175,   111,   176,   128,     5,
  294.      6,     7,     8,     9,    33,    34,    35,   135,   137,   133,
  295.    139,   138,     7,    92,    36,    58,    48,    35,   144,    65,
  296.     37,   140,    38,   165,   182,   148,   149,   150,   151,   167,
  297.    174,    59,   179,    60,   180,    20,    21,     0,     5,     6,
  298.      7,     8,     9,    33,    34,    35,     0,    88,    89,    90,
  299.     91,   161,   162,    36,   163,    92,   164,     0,    94,    37,
  300.     97,    38,     5,     6,     7,     8,     9,    33,    34,    35,
  301.     88,    89,    90,    91,     0,     0,     0,    36,    92,     0,
  302.      0,   121,   112,    37,     0,    38,     5,     6,     7,     8,
  303.      9,    33,    34,    35,    82,    83,    84,    85,    86,     0,
  304.      0,    36,     0,     0,     0,     0,   141,    37,     0,    38,
  305.      5,     6,     7,     8,     9,    33,    34,    35,     0,     0,
  306.      0,     0,     0,     0,     0,    36,     0,     0,     0,     0,
  307.    166,    37,     0,    38,     5,     6,     7,     8,     9,    33,
  308.     34,    35,     0,     7,     8,     9,    33,    34,    35,    36,
  309.      0,     0,   123,     0,     0,    37,    36,    38,     0,     0,
  310.      0,     0,    37,     0,    38,     7,     8,     9,    33,    34,
  311.     35,     0,     0,     0,     0,     0,     0,     0,    36,     0,
  312.      0,     0,     0,     0,    37,     0,    38,    79,    80,    81,
  313.     82,    83,    84,    85,    86,     0,     0,     0,     0,   169,
  314.      0,     0,   170,    79,    80,    81,    82,    83,    84,    85,
  315.     86,     0,     0,     0,     0,   171,     0,     0,   172,    79,
  316.     80,    81,    82,    83,    84,    85,    86,     0,     0,     0,
  317.      0,     0,     0,     0,    87,    79,    80,    81,    82,    83,
  318.     84,    85,    86,     0,     0,     0,     0,     0,     0,     0,
  319.    152,    79,    80,    81,    82,    83,    84,    85,    86,     0,
  320.      0,     0,     0,     0,     0,     0,   154,    79,    80,    81,
  321.     82,    83,    84,    85,    86,     0,     0,     0,     0,     0,
  322.      0,     0,   155,    79,    80,    81,    82,    83,    84,    85,
  323.     86,    88,    89,    90,    91,     0,     0,     0,   173,    92,
  324.      0,     0,     0,     0,     0,     0,    93,    79,    80,    81,
  325.     82,    83,    84,    85,    86,     0,     0,     0,   120,    79,
  326.     80,    81,    82,    83,    84,    85,    86,     0,     0,     0,
  327.    177,    79,    80,    81,    82,    83,    84,    85,    86,     0,
  328.      0,     0,   178,    79,    80,    81,    82,    83,    84,    85,
  329.     86,     0,   104,    79,    80,    81,    82,    83,    84,    85,
  330.     86,     0,   118,    79,    80,    81,    82,    83,    84,    85,
  331.     86
  332. };
  333.  
  334. static const short yycheck[] = {    13,
  335.      1,    14,    32,    25,     0,     1,    28,     3,     4,    23,
  336.      6,     7,     8,     9,    10,    11,     1,    13,    14,    25,
  337.     16,    31,    36,    37,    38,    22,    32,    25,    13,    23,
  338.     24,    45,    30,    11,    31,    31,    32,    33,     8,     9,
  339.     10,    11,    12,    13,    45,    22,    27,    17,    18,     6,
  340.      7,    21,    66,    67,    31,    69,    70,    27,    31,    29,
  341.     31,    25,    31,    21,    22,    66,    80,    81,    32,    83,
  342.     84,    85,    86,    31,     8,     8,    25,    11,    11,    13,
  343.     13,    30,    27,    17,    17,    98,    32,   101,   102,   103,
  344.     31,    13,    14,    27,    27,    29,    29,    17,    99,    25,
  345.     26,    31,    24,    25,    26,    27,    28,    17,   122,   123,
  346.     17,   125,   126,    17,   128,    37,    38,    17,    18,    19,
  347.     20,    27,    25,    45,    32,    25,    26,    30,   142,     8,
  348.      9,    10,    11,    12,    13,    14,    27,    59,    60,    17,
  349.     25,   142,    21,    17,    66,    30,    68,    17,    27,    71,
  350.     29,    17,    17,    26,    17,   169,    32,   171,    17,     6,
  351.      7,     8,     9,    10,    11,    12,    13,    89,    90,    17,
  352.     92,    17,     8,    25,    21,    11,    98,    13,   100,    26,
  353.     27,    32,    29,    32,     0,   107,   108,   109,   110,    32,
  354.     32,    27,    32,    29,    32,     1,     1,    -1,     6,     7,
  355.      8,     9,    10,    11,    12,    13,    -1,    17,    18,    19,
  356.     20,   133,   134,    21,   136,    25,   138,    -1,    26,    27,
  357.    142,    29,     6,     7,     8,     9,    10,    11,    12,    13,
  358.     17,    18,    19,    20,    -1,    -1,    -1,    21,    25,    -1,
  359.     -1,    28,    26,    27,    -1,    29,     6,     7,     8,     9,
  360.     10,    11,    12,    13,    20,    21,    22,    23,    24,    -1,
  361.     -1,    21,    -1,    -1,    -1,    -1,    26,    27,    -1,    29,
  362.      6,     7,     8,     9,    10,    11,    12,    13,    -1,    -1,
  363.     -1,    -1,    -1,    -1,    -1,    21,    -1,    -1,    -1,    -1,
  364.     26,    27,    -1,    29,     6,     7,     8,     9,    10,    11,
  365.     12,    13,    -1,     8,     9,    10,    11,    12,    13,    21,
  366.     -1,    -1,    17,    -1,    -1,    27,    21,    29,    -1,    -1,
  367.     -1,    -1,    27,    -1,    29,     8,     9,    10,    11,    12,
  368.     13,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    21,    -1,
  369.     -1,    -1,    -1,    -1,    27,    -1,    29,    17,    18,    19,
  370.     20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    29,
  371.     -1,    -1,    32,    17,    18,    19,    20,    21,    22,    23,
  372.     24,    -1,    -1,    -1,    -1,    29,    -1,    -1,    32,    17,
  373.     18,    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,
  374.     -1,    -1,    -1,    -1,    32,    17,    18,    19,    20,    21,
  375.     22,    23,    24,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  376.     32,    17,    18,    19,    20,    21,    22,    23,    24,    -1,
  377.     -1,    -1,    -1,    -1,    -1,    -1,    32,    17,    18,    19,
  378.     20,    21,    22,    23,    24,    -1,    -1,    -1,    -1,    -1,
  379.     -1,    -1,    32,    17,    18,    19,    20,    21,    22,    23,
  380.     24,    17,    18,    19,    20,    -1,    -1,    -1,    32,    25,
  381.     -1,    -1,    -1,    -1,    -1,    -1,    32,    17,    18,    19,
  382.     20,    21,    22,    23,    24,    -1,    -1,    -1,    28,    17,
  383.     18,    19,    20,    21,    22,    23,    24,    -1,    -1,    -1,
  384.     28,    17,    18,    19,    20,    21,    22,    23,    24,    -1,
  385.     -1,    -1,    28,    17,    18,    19,    20,    21,    22,    23,
  386.     24,    -1,    26,    17,    18,    19,    20,    21,    22,    23,
  387.     24,    -1,    26,    17,    18,    19,    20,    21,    22,    23,
  388.     24
  389. };
  390. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  391. #line 3 "/usr/lib/bison.simple"
  392.  
  393. /* Skeleton output parser for bison,
  394.    Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  395.  
  396.    This program is free software; you can redistribute it and/or modify
  397.    it under the terms of the GNU General Public License as published by
  398.    the Free Software Foundation; either version 1, or (at your option)
  399.    any later version.
  400.  
  401.    This program is distributed in the hope that it will be useful,
  402.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  403.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  404.    GNU General Public License for more details.
  405.  
  406.    You should have received a copy of the GNU General Public License
  407.    along with this program; if not, write to the Free Software
  408.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  409.  
  410.  
  411. #ifndef alloca
  412. #ifdef __GNUC__
  413. #define alloca __builtin_alloca
  414. #else /* not GNU C.  */
  415. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  416. #include <alloca.h>
  417. #else /* not sparc */
  418. #if defined (MSDOS) && !defined (__TURBOC__)
  419. #include <malloc.h>
  420. #else /* not MSDOS, or __TURBOC__ */
  421. #if defined(_AIX)
  422. #include <malloc.h>
  423.  #pragma alloca
  424. #else /* not MSDOS, __TURBOC__, or _AIX */
  425. #ifdef __hpux
  426. #ifdef __cplusplus
  427. extern "C" {
  428. void *alloca (unsigned int);
  429. };
  430. #else /* not __cplusplus */
  431. void *alloca ();
  432. #endif /* not __cplusplus */
  433. #endif /* __hpux */
  434. #endif /* not _AIX */
  435. #endif /* not MSDOS, or __TURBOC__ */
  436. #endif /* not sparc.  */
  437. #endif /* not GNU C.  */
  438. #endif /* alloca not defined.  */
  439.  
  440. /* This is the parser code that is written into each bison parser
  441.   when the %semantic_parser declaration is not specified in the grammar.
  442.   It was written by Richard Stallman by simplifying the hairy parser
  443.   used when %semantic_parser is specified.  */
  444.  
  445. /* Note: there must be only one dollar sign in this file.
  446.    It is replaced by the list of actions, each action
  447.    as one case of the switch.  */
  448.  
  449. #define yyerrok        (yyerrstatus = 0)
  450. #define yyclearin    (yychar = YYEMPTY)
  451. #define YYEMPTY        -2
  452. #define YYEOF        0
  453. #define YYACCEPT    return(0)
  454. #define YYABORT     return(1)
  455. #define YYERROR        goto yyerrlab1
  456. /* Like YYERROR except do call yyerror.
  457.    This remains here temporarily to ease the
  458.    transition to the new meaning of YYERROR, for GCC.
  459.    Once GCC version 2 has supplanted version 1, this can go.  */
  460. #define YYFAIL        goto yyerrlab
  461. #define YYRECOVERING()  (!!yyerrstatus)
  462. #define YYBACKUP(token, value) \
  463. do                                \
  464.   if (yychar == YYEMPTY && yylen == 1)                \
  465.     { yychar = (token), yylval = (value);            \
  466.       yychar1 = YYTRANSLATE (yychar);                \
  467.       YYPOPSTACK;                        \
  468.       goto yybackup;                        \
  469.     }                                \
  470.   else                                \
  471.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  472. while (0)
  473.  
  474. #define YYTERROR    1
  475. #define YYERRCODE    256
  476.  
  477. #ifndef YYPURE
  478. #define YYLEX        yylex()
  479. #endif
  480.  
  481. #ifdef YYPURE
  482. #ifdef YYLSP_NEEDED
  483. #define YYLEX        yylex(&yylval, &yylloc)
  484. #else
  485. #define YYLEX        yylex(&yylval)
  486. #endif
  487. #endif
  488.  
  489. /* If nonreentrant, generate the variables here */
  490.  
  491. #ifndef YYPURE
  492.  
  493. int    yychar;            /*  the lookahead symbol        */
  494. YYSTYPE    yylval;            /*  the semantic value of the        */
  495.                 /*  lookahead symbol            */
  496.  
  497. #ifdef YYLSP_NEEDED
  498. YYLTYPE yylloc;            /*  location data for the lookahead    */
  499.                 /*  symbol                */
  500. #endif
  501.  
  502. int yynerrs;            /*  number of parse errors so far       */
  503. #endif  /* not YYPURE */
  504.  
  505. #if YYDEBUG != 0
  506. int yydebug;            /*  nonzero means print parse trace    */
  507. /* Since this is uninitialized, it does not stop multiple parsers
  508.    from coexisting.  */
  509. #endif
  510.  
  511. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  512.  
  513. #ifndef    YYINITDEPTH
  514. #define YYINITDEPTH 200
  515. #endif
  516.  
  517. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  518.     (effective only if the built-in stack extension method is used).  */
  519.  
  520. #if YYMAXDEPTH == 0
  521. #undef YYMAXDEPTH
  522. #endif
  523.  
  524. #ifndef YYMAXDEPTH
  525. #define YYMAXDEPTH 10000
  526. #endif
  527.  
  528. /* Prevent warning if -Wstrict-prototypes.  */
  529. #ifdef __GNUC__
  530. int yyparse (void);
  531. #endif
  532.  
  533. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  534. #define __yy_bcopy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  535. #else                /* not GNU C or C++ */
  536. #ifndef __cplusplus
  537.  
  538. /* This is the most reliable way to avoid incompatibilities
  539.    in available built-in functions on various systems.  */
  540. static void
  541. __yy_bcopy (from, to, count)
  542.      char *from;
  543.      char *to;
  544.      int count;
  545. {
  546.   register char *f = from;
  547.   register char *t = to;
  548.   register int i = count;
  549.  
  550.   while (i-- > 0)
  551.     *t++ = *f++;
  552. }
  553.  
  554. #else /* __cplusplus */
  555.  
  556. /* This is the most reliable way to avoid incompatibilities
  557.    in available built-in functions on various systems.  */
  558. static void
  559. __yy_bcopy (char *from, char *to, int count)
  560. {
  561.   register char *f = from;
  562.   register char *t = to;
  563.   register int i = count;
  564.  
  565.   while (i-- > 0)
  566.     *t++ = *f++;
  567. }
  568.  
  569. #endif
  570. #endif
  571.  
  572. #line 184 "/usr/lib/bison.simple"
  573. int
  574. yyparse()
  575. {
  576.   register int yystate;
  577.   register int yyn;
  578.   register short *yyssp;
  579.   register YYSTYPE *yyvsp;
  580.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  581.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  582.  
  583.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  584.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  585.  
  586.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  587.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  588.  
  589. #ifdef YYLSP_NEEDED
  590.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  591.   YYLTYPE *yyls = yylsa;
  592.   YYLTYPE *yylsp;
  593.  
  594. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  595. #else
  596. #define YYPOPSTACK   (yyvsp--, yyssp--)
  597. #endif
  598.  
  599.   int yystacksize = YYINITDEPTH;
  600.  
  601. #ifdef YYPURE
  602.   int yychar;
  603.   YYSTYPE yylval;
  604.   int yynerrs;
  605. #ifdef YYLSP_NEEDED
  606.   YYLTYPE yylloc;
  607. #endif
  608. #endif
  609.  
  610.   YYSTYPE yyval;        /*  the variable used to return        */
  611.                 /*  semantic values from the action    */
  612.                 /*  routines                */
  613.  
  614.   int yylen;
  615.  
  616. #if YYDEBUG != 0
  617.   if (yydebug)
  618.     fprintf(stderr, "Starting parse\n");
  619. #endif
  620.  
  621.   yystate = 0;
  622.   yyerrstatus = 0;
  623.   yynerrs = 0;
  624.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  625.  
  626.   /* Initialize stack pointers.
  627.      Waste one element of value and location stack
  628.      so that they stay on the same level as the state stack.
  629.      The wasted elements are never initialized.  */
  630.  
  631.   yyssp = yyss - 1;
  632.   yyvsp = yyvs;
  633. #ifdef YYLSP_NEEDED
  634.   yylsp = yyls;
  635. #endif
  636.  
  637. /* Push a new state, which is found in  yystate  .  */
  638. /* In all cases, when you get here, the value and location stacks
  639.    have just been pushed. so pushing a state here evens the stacks.  */
  640. yynewstate:
  641.  
  642.   *++yyssp = yystate;
  643.  
  644.   if (yyssp >= yyss + yystacksize - 1)
  645.     {
  646.       /* Give user a chance to reallocate the stack */
  647.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  648.       YYSTYPE *yyvs1 = yyvs;
  649.       short *yyss1 = yyss;
  650. #ifdef YYLSP_NEEDED
  651.       YYLTYPE *yyls1 = yyls;
  652. #endif
  653.  
  654.       /* Get the current used size of the three stacks, in elements.  */
  655.       int size = yyssp - yyss + 1;
  656.  
  657. #ifdef yyoverflow
  658.       /* Each stack pointer address is followed by the size of
  659.      the data in use in that stack, in bytes.  */
  660. #ifdef YYLSP_NEEDED
  661.       /* This used to be a conditional around just the two extra args,
  662.      but that might be undefined if yyoverflow is a macro.  */
  663.       yyoverflow("parser stack overflow",
  664.          &yyss1, size * sizeof (*yyssp),
  665.          &yyvs1, size * sizeof (*yyvsp),
  666.          &yyls1, size * sizeof (*yylsp),
  667.          &yystacksize);
  668. #else
  669.       yyoverflow("parser stack overflow",
  670.          &yyss1, size * sizeof (*yyssp),
  671.          &yyvs1, size * sizeof (*yyvsp),
  672.          &yystacksize);
  673. #endif
  674.  
  675.       yyss = yyss1; yyvs = yyvs1;
  676. #ifdef YYLSP_NEEDED
  677.       yyls = yyls1;
  678. #endif
  679. #else /* no yyoverflow */
  680.       /* Extend the stack our own way.  */
  681.       if (yystacksize >= YYMAXDEPTH)
  682.     {
  683.       yyerror("parser stack overflow");
  684.       return 2;
  685.     }
  686.       yystacksize *= 2;
  687.       if (yystacksize > YYMAXDEPTH)
  688.     yystacksize = YYMAXDEPTH;
  689.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  690.       __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  691.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  692.       __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  693. #ifdef YYLSP_NEEDED
  694.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  695.       __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  696. #endif
  697. #endif /* no yyoverflow */
  698.  
  699.       yyssp = yyss + size - 1;
  700.       yyvsp = yyvs + size - 1;
  701. #ifdef YYLSP_NEEDED
  702.       yylsp = yyls + size - 1;
  703. #endif
  704.  
  705. #if YYDEBUG != 0
  706.       if (yydebug)
  707.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  708. #endif
  709.  
  710.       if (yyssp >= yyss + yystacksize - 1)
  711.     YYABORT;
  712.     }
  713.  
  714. #if YYDEBUG != 0
  715.   if (yydebug)
  716.     fprintf(stderr, "Entering state %d\n", yystate);
  717. #endif
  718.  
  719.   goto yybackup;
  720.  yybackup:
  721.  
  722. /* Do appropriate processing given the current state.  */
  723. /* Read a lookahead token if we need one and don't already have one.  */
  724. /* yyresume: */
  725.  
  726.   /* First try to decide what to do without reference to lookahead token.  */
  727.  
  728.   yyn = yypact[yystate];
  729.   if (yyn == YYFLAG)
  730.     goto yydefault;
  731.  
  732.   /* Not known => get a lookahead token if don't already have one.  */
  733.  
  734.   /* yychar is either YYEMPTY or YYEOF
  735.      or a valid token in external form.  */
  736.  
  737.   if (yychar == YYEMPTY)
  738.     {
  739. #if YYDEBUG != 0
  740.       if (yydebug)
  741.     fprintf(stderr, "Reading a token: ");
  742. #endif
  743.       yychar = YYLEX;
  744.     }
  745.  
  746.   /* Convert token to internal form (in yychar1) for indexing tables with */
  747.  
  748.   if (yychar <= 0)        /* This means end of input. */
  749.     {
  750.       yychar1 = 0;
  751.       yychar = YYEOF;        /* Don't call YYLEX any more */
  752.  
  753. #if YYDEBUG != 0
  754.       if (yydebug)
  755.     fprintf(stderr, "Now at end of input.\n");
  756. #endif
  757.     }
  758.   else
  759.     {
  760.       yychar1 = YYTRANSLATE(yychar);
  761.  
  762. #if YYDEBUG != 0
  763.       if (yydebug)
  764.     {
  765.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  766.       /* Give the individual parser a way to print the precise meaning
  767.          of a token, for further debugging info.  */
  768. #ifdef YYPRINT
  769.       YYPRINT (stderr, yychar, yylval);
  770. #endif
  771.       fprintf (stderr, ")\n");
  772.     }
  773. #endif
  774.     }
  775.  
  776.   yyn += yychar1;
  777.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  778.     goto yydefault;
  779.  
  780.   yyn = yytable[yyn];
  781.  
  782.   /* yyn is what to do for this token type in this state.
  783.      Negative => reduce, -yyn is rule number.
  784.      Positive => shift, yyn is new state.
  785.        New state is final state => don't bother to shift,
  786.        just return success.
  787.      0, or most negative number => error.  */
  788.  
  789.   if (yyn < 0)
  790.     {
  791.       if (yyn == YYFLAG)
  792.     goto yyerrlab;
  793.       yyn = -yyn;
  794.       goto yyreduce;
  795.     }
  796.   else if (yyn == 0)
  797.     goto yyerrlab;
  798.  
  799.   if (yyn == YYFINAL)
  800.     YYACCEPT;
  801.  
  802.   /* Shift the lookahead token.  */
  803.  
  804. #if YYDEBUG != 0
  805.   if (yydebug)
  806.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  807. #endif
  808.  
  809.   /* Discard the token being shifted unless it is eof.  */
  810.   if (yychar != YYEOF)
  811.     yychar = YYEMPTY;
  812.  
  813.   *++yyvsp = yylval;
  814. #ifdef YYLSP_NEEDED
  815.   *++yylsp = yylloc;
  816. #endif
  817.  
  818.   /* count tokens shifted since error; after three, turn off error status.  */
  819.   if (yyerrstatus) yyerrstatus--;
  820.  
  821.   yystate = yyn;
  822.   goto yynewstate;
  823.  
  824. /* Do the default action for the current state.  */
  825. yydefault:
  826.  
  827.   yyn = yydefact[yystate];
  828.   if (yyn == 0)
  829.     goto yyerrlab;
  830.  
  831. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  832. yyreduce:
  833.   yylen = yyr2[yyn];
  834.   if (yylen > 0)
  835.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  836.  
  837. #if YYDEBUG != 0
  838.   if (yydebug)
  839.     {
  840.       int i;
  841.  
  842.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  843.            yyn, yyrline[yyn]);
  844.  
  845.       /* Print the symbols being reduced, and their result.  */
  846.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  847.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  848.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  849.     }
  850. #endif
  851.  
  852.  
  853.   switch (yyn) {
  854.  
  855. case 4:
  856. #line 94 "xbwparser.y"
  857. { fpar_call("End");                  ;
  858.     break;}
  859. case 5:
  860. #line 95 "xbwparser.y"
  861. { yyvsp[-4].tptr->value.var = yyvsp[-1].val;                ;
  862.     break;}
  863. case 6:
  864. #line 96 "xbwparser.y"
  865. { yyvsp[-4].tptr->value.var += yyvsp[-1].val;               ;
  866.     break;}
  867. case 7:
  868. #line 97 "xbwparser.y"
  869. { strcpy(yyvsp[-4].tptr->value.strp,yyvsp[-1].strp);         ;
  870.     break;}
  871. case 8:
  872. #line 98 "xbwparser.y"
  873. {
  874.            char sstr[100];
  875.            sprintf(sstr,"%d",(int)yyvsp[-1].val);
  876.            strcat(yyvsp[-4].tptr->value.strp,sstr);
  877.            ;
  878.     break;}
  879. case 9:
  880. #line 103 "xbwparser.y"
  881. { ; ;
  882.     break;}
  883. case 10:
  884. #line 104 "xbwparser.y"
  885. { fpar_call(yyvsp[-3].strp); ;
  886.     break;}
  887. case 11:
  888. #line 105 "xbwparser.y"
  889. { fpar_call(func_lastname); ;
  890.     break;}
  891. case 12:
  892. #line 106 "xbwparser.y"
  893. {
  894.            printf("\nResult= %17.7f",yyvsp[-1].val);
  895.            ;
  896.     break;}
  897. case 13:
  898. #line 109 "xbwparser.y"
  899. { printf("\nNUM =%15.9f",yyvsp[-1].val);;
  900.     break;}
  901. case 14:
  902. #line 110 "xbwparser.y"
  903. { printf("\nSTR =%s",yyvsp[-1].strp);;
  904.     break;}
  905. case 15:
  906. #line 112 "xbwparser.y"
  907. { IFTHEN_val = (int)yyvsp[-1].val;              ;
  908.     break;}
  909. case 16:
  910. #line 114 "xbwparser.y"
  911. { macpar_call(yyvsp[-4].strp); ;
  912.     break;}
  913. case 17:
  914. #line 115 "xbwparser.y"
  915. { macpar_call(yyvsp[-3].strp); ;
  916.     break;}
  917. case 18:
  918. #line 117 "xbwparser.y"
  919. {
  920.            /*{{{  */
  921.            {
  922.            XbWDDb_DbIVar  *TT=yyvsp[-4].ptr;
  923.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  924.              XbWFSy_bf1_printf("\nERROR: Pointer VAR Element not found!");
  925.              errcnt=errcnt+1;
  926.              }
  927.            else {
  928.              if ( (TT->tp & XbWDDb_Typ) == XbWDDb_NPtr){
  929.                XbWDDb_DbINPtr  *TTRG = (XbWDDb_DbINPtr *)TT;
  930.                TTRG->inh = XbWDDb_C_PtrToDbI((char*)yyvsp[-1].ptr,XbWDDb_DbISys);
  931.                }
  932.              else {
  933.                XbWFSy_bf1_printf("\nERROR: Target is no (ptr) VAR Element!");
  934.                errcnt=errcnt+1;
  935.                };
  936.              };
  937.            };
  938.            /*}}}  */
  939.            ;
  940.     break;}
  941. case 19:
  942. #line 138 "xbwparser.y"
  943. {
  944.            /*{{{  */
  945.            {
  946.            XbWDDb_DbIStr  *TS=(XbWDDb_DbIStr *)yyvsp[-4].ptr;
  947.            if ( (TS->tp & XbWDDb_Typ) == XbWDDb_Str){
  948.              int len;
  949.              len = strlen(yyvsp[-1].strp);
  950.              if (len < TS->len * 2) {
  951.                strcpy((char*)&(TS->nmi[(TS->tp & XbWDDb_NLen)]),yyvsp[-1].strp);
  952.                }
  953.              else {
  954.                XbWFSy_bf1_printf("\nERROR: Cannot set string because not enough space!");
  955.                errcnt=errcnt+1;
  956.                };
  957.              }
  958.            else {
  959.              XbWFSy_bf1_printf("\nERROR: Target is no (str) VAR Element!");
  960.              errcnt=errcnt+1;
  961.              };
  962.            };
  963.            /*}}}  */
  964.            ;
  965.     break;}
  966. case 20:
  967. #line 160 "xbwparser.y"
  968. {
  969.            /*{{{  */
  970.            {
  971.            XbWDDb_DbIVar  *TT=yyvsp[-4].ptr;
  972.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  973.              XbWFSy_bf1_printf("\nERROR: Integer VAR Element not found!");
  974.              errcnt=errcnt+1;
  975.              }
  976.            else {
  977.              switch (TT->tp & XbWDDb_Typ){
  978.                case XbWDDb_Int: {
  979.                                   XbWDDb_DbIInt  *TTRG = (XbWDDb_DbIInt *)TT;
  980.                                   TTRG->inh = yyvsp[-1].val;
  981.                                   };
  982.                                 break;
  983.                case XbWDDb_Dbl: {
  984.                                   XbWDDb_DbIDbl  *TTRG = (XbWDDb_DbIDbl *)TT;
  985.                                   TTRG->inh = yyvsp[-1].val;
  986.                                   };
  987.                                 break;
  988.                default:
  989.                                 XbWFSy_bf1_printf("\nERROR: Target is no (int/dbl) VAR Element!");
  990.                                 errcnt=errcnt+1;
  991.                };
  992.              };
  993.            };
  994.            /*}}}  */
  995.            ;
  996.     break;}
  997. case 21:
  998. #line 188 "xbwparser.y"
  999. {
  1000.            /*{{{  */
  1001.            {
  1002.            XbWDDb_DbIVar  *TT=yyvsp[-4].ptr;
  1003.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  1004.              XbWFSy_bf1_printf("\nERROR: Integer VAR Element not found!");
  1005.              errcnt=errcnt+1;
  1006.              }
  1007.            else {
  1008.              switch (TT->tp & XbWDDb_Typ){
  1009.                case XbWDDb_Int: {
  1010.                                   XbWDDb_DbIInt  *TTRG = (XbWDDb_DbIInt *)TT;
  1011.                                   TTRG->inh+= yyvsp[-1].val;
  1012.                                   };
  1013.                                 break;
  1014.                case XbWDDb_Dbl: {
  1015.                                   XbWDDb_DbIDbl  *TTRG = (XbWDDb_DbIDbl *)TT;
  1016.                                   TTRG->inh+= yyvsp[-1].val;
  1017.                                   };
  1018.                                 break;
  1019.                default:
  1020.                                 XbWFSy_bf1_printf("\nERROR: Target is no (int/dbl) VAR Element!");
  1021.                                 errcnt=errcnt+1;
  1022.                };
  1023.              };
  1024.            };
  1025.            /*}}}  */
  1026.            ;
  1027.     break;}
  1028. case 22:
  1029. #line 216 "xbwparser.y"
  1030. {
  1031.            /*{{{  */
  1032.            {
  1033.            XbWDDb_DbIVar  *TT=yyvsp[-4].ptr;
  1034.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  1035.              XbWFSy_bf1_printf("\nERROR: Integer VAR Element not found!");
  1036.              errcnt=errcnt+1;
  1037.              }
  1038.            else {
  1039.              switch (TT->tp & XbWDDb_Typ){
  1040.                case XbWDDb_Int: {
  1041.                                   XbWDDb_DbIInt  *TTRG = (XbWDDb_DbIInt *)TT;
  1042.                                   TTRG->inh -= yyvsp[-1].val;
  1043.                                   };
  1044.                                 break;
  1045.                case XbWDDb_Dbl: {
  1046.                                   XbWDDb_DbIDbl  *TTRG = (XbWDDb_DbIDbl *)TT;
  1047.                                   TTRG->inh -= yyvsp[-1].val;
  1048.                                   };
  1049.                                 break;
  1050.                default:
  1051.                                 XbWFSy_bf1_printf("\nERROR: Target is no (int/dbl) VAR Element!");
  1052.                                 errcnt=errcnt+1;
  1053.                };
  1054.              };
  1055.            };
  1056.            /*}}}  */
  1057.            ;
  1058.     break;}
  1059. case 23:
  1060. #line 244 "xbwparser.y"
  1061. {
  1062.            /*{{{  */
  1063.            {
  1064.            XbWDDb_DbIVar  *TT=yyvsp[-7].ptr;
  1065.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  1066.              XbWFSy_bf1_printf("\nERROR: Integer VAR Element not found!");
  1067.              errcnt=errcnt+1;
  1068.              }
  1069.            else {
  1070.              switch (TT->tp & XbWDDb_Typ){
  1071.                case XbWDDb_Int: {
  1072.                                   XbWDDb_DbIInt  *TTRG = (XbWDDb_DbIInt *)TT;
  1073.                                   TTRG->inh+= yyvsp[-4].val;
  1074.                                   if (TTRG->inh > yyvsp[-2].val){
  1075.                                     TTRG->inh = yyvsp[-2].val;
  1076.                                     };
  1077.                                   };
  1078.                                 break;
  1079.                case XbWDDb_Dbl: {
  1080.                                   XbWDDb_DbIDbl  *TTRG = (XbWDDb_DbIDbl *)TT;
  1081.                                   TTRG->inh+= yyvsp[-4].val;
  1082.                                   if (TTRG->inh > yyvsp[-2].val){
  1083.                                     TTRG->inh = yyvsp[-2].val;
  1084.                                     };
  1085.                                   };
  1086.                                 break;
  1087.                default:
  1088.                                 XbWFSy_bf1_printf("\nERROR: Target is no (int/dbl) VAR Element!");
  1089.                                 errcnt=errcnt+1;
  1090.                };
  1091.              };
  1092.            };
  1093.            /*}}}  */
  1094.            ;
  1095.     break;}
  1096. case 24:
  1097. #line 278 "xbwparser.y"
  1098. {
  1099.            /*{{{  */
  1100.            {
  1101.            XbWDDb_DbIVar  *TT=yyvsp[-7].ptr;
  1102.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  1103.              XbWFSy_bf1_printf("\nERROR: Integer VAR Element not found!");
  1104.              errcnt=errcnt+1;
  1105.              }
  1106.            else {
  1107.              switch (TT->tp & XbWDDb_Typ){
  1108.                case XbWDDb_Int: {
  1109.                                   XbWDDb_DbIInt  *TTRG = (XbWDDb_DbIInt *)TT;
  1110.                                   TTRG->inh -= yyvsp[-4].val;
  1111.                                   if (TTRG->inh < yyvsp[-2].val){
  1112.                                     TTRG->inh = yyvsp[-2].val;
  1113.                                     };
  1114.                                   };
  1115.                                 break;
  1116.                case XbWDDb_Dbl: {
  1117.                                   XbWDDb_DbIDbl  *TTRG = (XbWDDb_DbIDbl *)TT;
  1118.                                   TTRG->inh -= yyvsp[-4].val;
  1119.                                   if (TTRG->inh < yyvsp[-2].val){
  1120.                                     TTRG->inh = yyvsp[-2].val;
  1121.                                     };
  1122.                                   };
  1123.                                 break;
  1124.                default:
  1125.                                 XbWFSy_bf1_printf("\nERROR: Target is no (int/dbl) VAR Element!");
  1126.                                 errcnt=errcnt+1;
  1127.                };
  1128.              };
  1129.            };
  1130.            /*}}}  */
  1131.            ;
  1132.     break;}
  1133. case 25:
  1134. #line 312 "xbwparser.y"
  1135. { yyerrok; ;
  1136.     break;}
  1137. case 26:
  1138. #line 314 "xbwparser.y"
  1139. { yyval.val=fpar_call(yyvsp[-3].strp); ;
  1140.     break;}
  1141. case 27:
  1142. #line 316 "xbwparser.y"
  1143. { fpar_add(1,yyvsp[0].strp,0,0,NULL);      ;
  1144.     break;}
  1145. case 28:
  1146. #line 317 "xbwparser.y"
  1147. { fpar_add(2,0,yyvsp[0].val,0,NULL);      ;
  1148.     break;}
  1149. case 29:
  1150. #line 318 "xbwparser.y"
  1151. { fpar_add(10,0,0,0,yyvsp[0].ptr);        ;
  1152.     break;}
  1153. case 30:
  1154. #line 319 "xbwparser.y"
  1155. { fpar_add(1,yyvsp[0].strp,0,0,NULL);      ;
  1156.     break;}
  1157. case 31:
  1158. #line 320 "xbwparser.y"
  1159. { fpar_add(2,0,yyvsp[0].val,0,NULL);      ;
  1160.     break;}
  1161. case 32:
  1162. #line 321 "xbwparser.y"
  1163. { fpar_add(10,0,0,0,yyvsp[0].ptr);        ;
  1164.     break;}
  1165. case 33:
  1166. #line 323 "xbwparser.y"
  1167. {
  1168.            yyval.ptr = (XbWDDb_DbIVar *)XbWFDb_GetDbI(yyvsp[-4].strp,yyvsp[-2].strp,yyvsp[0].strp);
  1169.            ;
  1170.     break;}
  1171. case 34:
  1172. #line 326 "xbwparser.y"
  1173. {
  1174.            /*{{{  */
  1175.            (XbWDDb_DbIPtr *)yyval.ptr = (XbWDDb_DbIVar *)NULL;
  1176.            /*}}}  */
  1177.            ;
  1178.     break;}
  1179. case 35:
  1180. #line 332 "xbwparser.y"
  1181. {
  1182.            yyval.ptr = (XbWDDb_DbIVar *)XbWFDb_GetDbI(yyvsp[-4].strp,yyvsp[-2].strp,yyvsp[0].strp);
  1183.            ;
  1184.     break;}
  1185. case 36:
  1186. #line 336 "xbwparser.y"
  1187. {
  1188.            yyval.ptr = (XbWDDb_DbIVar *)XbWFDb_GetDbI(yyvsp[-4].strp,yyvsp[-2].strp,yyvsp[0].strp);
  1189.            ;
  1190.     break;}
  1191. case 37:
  1192. #line 339 "xbwparser.y"
  1193. {
  1194.            yyval.ptr = (XbWDDb_DbIVar *)XbWFDb_GetDbI(yyvsp[-4].strp,yyvsp[-2].strp,yyvsp[0].strp);
  1195.            ;
  1196.     break;}
  1197. case 38:
  1198. #line 343 "xbwparser.y"
  1199. { yyval.val = yyvsp[0].val;                           ;
  1200.     break;}
  1201. case 39:
  1202. #line 344 "xbwparser.y"
  1203. { yyval.val = yyvsp[-1].tptr->value.var;                ;
  1204.     break;}
  1205. case 40:
  1206. #line 345 "xbwparser.y"
  1207. { yyval.val = (yyvsp[-3].val == yyvsp[0].val);                   ;
  1208.     break;}
  1209. case 41:
  1210. #line 346 "xbwparser.y"
  1211. { yyval.val = (yyvsp[-3].val != yyvsp[0].val);                   ;
  1212.     break;}
  1213. case 42:
  1214. #line 347 "xbwparser.y"
  1215. { yyval.val = (yyvsp[-2].val <  yyvsp[0].val);                   ;
  1216.     break;}
  1217. case 43:
  1218. #line 348 "xbwparser.y"
  1219. { yyval.val = (yyvsp[-2].val >  yyvsp[0].val);                   ;
  1220.     break;}
  1221. case 44:
  1222. #line 349 "xbwparser.y"
  1223. { yyval.val = (yyvsp[-3].val <= yyvsp[0].val);                   ;
  1224.     break;}
  1225. case 45:
  1226. #line 350 "xbwparser.y"
  1227. { yyval.val = (yyvsp[-3].val >= yyvsp[0].val);                   ;
  1228.     break;}
  1229. case 46:
  1230. #line 351 "xbwparser.y"
  1231. { yyval.val = (yyvsp[-3].val != yyvsp[0].val);                   ;
  1232.     break;}
  1233. case 47:
  1234. #line 352 "xbwparser.y"
  1235. { yyval.val = yyvsp[-2].val+yyvsp[0].val;                        ;
  1236.     break;}
  1237. case 48:
  1238. #line 353 "xbwparser.y"
  1239. { yyval.val = yyvsp[-2].val-yyvsp[0].val;                        ;
  1240.     break;}
  1241. case 49:
  1242. #line 354 "xbwparser.y"
  1243. { yyval.val = yyvsp[-2].val/yyvsp[0].val;                        ;
  1244.     break;}
  1245. case 50:
  1246. #line 355 "xbwparser.y"
  1247. { yyval.val = yyvsp[-2].val*yyvsp[0].val;                        ;
  1248.     break;}
  1249. case 51:
  1250. #line 356 "xbwparser.y"
  1251. { yyval.val = -yyvsp[0].val;                        ;
  1252.     break;}
  1253. case 52:
  1254. #line 357 "xbwparser.y"
  1255. { yyval.val = yyvsp[-1].val;                           ;
  1256.     break;}
  1257. case 53:
  1258. #line 358 "xbwparser.y"
  1259. { yyval.val = yyvsp[-1].val;                           ;
  1260.     break;}
  1261. case 54:
  1262. #line 359 "xbwparser.y"
  1263. { yyval.val = (strcmp(yyvsp[-3].strp,yyvsp[0].strp) == 0);         ;
  1264.     break;}
  1265. case 55:
  1266. #line 360 "xbwparser.y"
  1267. { yyval.val = (strcmp(yyvsp[-2].strp,yyvsp[0].strp) >  0);         ;
  1268.     break;}
  1269. case 56:
  1270. #line 361 "xbwparser.y"
  1271. { yyval.val = (strcmp(yyvsp[-2].strp,yyvsp[0].strp) <  0);         ;
  1272.     break;}
  1273. case 57:
  1274. #line 362 "xbwparser.y"
  1275. { yyval.val = (strcmp(yyvsp[-3].strp,yyvsp[0].strp) >= 0);         ;
  1276.     break;}
  1277. case 58:
  1278. #line 363 "xbwparser.y"
  1279. { yyval.val = (strcmp(yyvsp[-3].strp,yyvsp[0].strp) <= 0);         ;
  1280.     break;}
  1281. case 59:
  1282. #line 364 "xbwparser.y"
  1283. { yyval.val = (strcmp(yyvsp[-3].strp,yyvsp[0].strp) != 0);         ;
  1284.     break;}
  1285. case 60:
  1286. #line 365 "xbwparser.y"
  1287. { yyval.val = yyvsp[0].val ; ;
  1288.     break;}
  1289. case 61:
  1290. #line 366 "xbwparser.y"
  1291. {
  1292.            /*{{{  */
  1293.            {
  1294.            XbWDDb_DbIVar  *TT= yyvsp[0].ptr;
  1295.            if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  1296.              XbWFSy_bf1_printf("\nERROR: Integer VAR Element not found!");
  1297.              errcnt=errcnt+1;
  1298.              }
  1299.            else {
  1300.              switch (TT->tp & XbWDDb_Typ){
  1301.                case XbWDDb_Int: {
  1302.                                   XbWDDb_DbIInt  *TTRG = (XbWDDb_DbIInt *)TT;
  1303.                                   yyval.val = (double)TTRG->inh;
  1304.                                   };
  1305.                                 break;
  1306.                case XbWDDb_Dbl: {
  1307.                                   XbWDDb_DbIDbl  *TTRG = (XbWDDb_DbIDbl *)TT;
  1308.                                   yyval.val = TTRG->inh;
  1309.                                   };
  1310.                                 break;
  1311.                default:
  1312.                                 XbWFSy_bf1_printf("\nERROR: Source of ptr is no numeric VAR Element!");
  1313.                                 errcnt=errcnt+1;
  1314.                };
  1315.              };
  1316.            };
  1317.            /*}}}  */
  1318.            ;
  1319.     break;}
  1320. case 62:
  1321. #line 395 "xbwparser.y"
  1322. {
  1323.            yyval.strp=yyvsp[0].strp;
  1324.            ;
  1325.     break;}
  1326. case 63:
  1327. #line 398 "xbwparser.y"
  1328. {
  1329.            /*{{{  */
  1330.            {
  1331.              XbWDDb_DbIVar  *TT=(XbWDDb_DbIVar *)yyvsp[0].ptr;
  1332.              if ((TT = (XbWDDb_DbIVar*)XbWFDb_VarInh(TT,0,NULL,0)) == NULL) {
  1333.                XbWFSy_bf1_printf("\nERROR: String VAR Element not found!");
  1334.                errcnt=errcnt+1;
  1335.                }
  1336.              else {
  1337.                if ( (TT->tp & XbWDDb_Typ) == XbWDDb_Str){
  1338.                  XbWDDb_DbIStr  *TS = (XbWDDb_DbIStr *)TT;
  1339.                  yyval.strp = (char *)&(TS->nmi[(TS->tp & XbWDDb_NLen)]);
  1340.                  }
  1341.                else {
  1342.                  XbWFSy_bf1_printf("\nERROR: target of pointer is no string!");
  1343.                  errcnt++;
  1344.                  };
  1345.                };
  1346.              };
  1347.            /*}}}  */
  1348.            ;
  1349.     break;}
  1350. case 64:
  1351. #line 419 "xbwparser.y"
  1352. {
  1353.            yyval.strp = yyvsp[0].tptr->value.strp;
  1354.            ;
  1355.     break;}
  1356. case 65:
  1357. #line 422 "xbwparser.y"
  1358. {
  1359.            /*{{{  */
  1360.            strcpy((char*)&scratch[scratchno][0],yyvsp[-2].strp);
  1361.            strcat((char*)&scratch[scratchno][0],yyvsp[0].strp);
  1362.            yyval.strp=(char*)&scratch[scratchno][0];
  1363.            scratchno++;
  1364.            if (scratchno>=scratchmax){
  1365.              scratchno=0;
  1366.              };
  1367.            /*}}}  */
  1368.            ;
  1369.     break;}
  1370. case 66:
  1371. #line 433 "xbwparser.y"
  1372. {
  1373.            yyval.strp=yyvsp[-1].strp;
  1374.            ;
  1375.     break;}
  1376. case 67:
  1377. #line 436 "xbwparser.y"
  1378. {
  1379.            yyval.strp=yyvsp[-1].strp;
  1380.            ;
  1381.     break;}
  1382. }
  1383.    /* the action file gets copied in in place of this dollarsign */
  1384. #line 465 "/usr/lib/bison.simple"
  1385.  
  1386.   yyvsp -= yylen;
  1387.   yyssp -= yylen;
  1388. #ifdef YYLSP_NEEDED
  1389.   yylsp -= yylen;
  1390. #endif
  1391.  
  1392. #if YYDEBUG != 0
  1393.   if (yydebug)
  1394.     {
  1395.       short *ssp1 = yyss - 1;
  1396.       fprintf (stderr, "state stack now");
  1397.       while (ssp1 != yyssp)
  1398.     fprintf (stderr, " %d", *++ssp1);
  1399.       fprintf (stderr, "\n");
  1400.     }
  1401. #endif
  1402.  
  1403.   *++yyvsp = yyval;
  1404.  
  1405. #ifdef YYLSP_NEEDED
  1406.   yylsp++;
  1407.   if (yylen == 0)
  1408.     {
  1409.       yylsp->first_line = yylloc.first_line;
  1410.       yylsp->first_column = yylloc.first_column;
  1411.       yylsp->last_line = (yylsp-1)->last_line;
  1412.       yylsp->last_column = (yylsp-1)->last_column;
  1413.       yylsp->text = 0;
  1414.     }
  1415.   else
  1416.     {
  1417.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1418.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1419.     }
  1420. #endif
  1421.  
  1422.   /* Now "shift" the result of the reduction.
  1423.      Determine what state that goes to,
  1424.      based on the state we popped back to
  1425.      and the rule number reduced by.  */
  1426.  
  1427.   yyn = yyr1[yyn];
  1428.  
  1429.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1430.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1431.     yystate = yytable[yystate];
  1432.   else
  1433.     yystate = yydefgoto[yyn - YYNTBASE];
  1434.  
  1435.   goto yynewstate;
  1436.  
  1437. yyerrlab:   /* here on detecting error */
  1438.  
  1439.   if (! yyerrstatus)
  1440.     /* If not already recovering from an error, report this error.  */
  1441.     {
  1442.       ++yynerrs;
  1443.  
  1444. #ifdef YYERROR_VERBOSE
  1445.       yyn = yypact[yystate];
  1446.  
  1447.       if (yyn > YYFLAG && yyn < YYLAST)
  1448.     {
  1449.       int size = 0;
  1450.       char *msg;
  1451.       int x, count;
  1452.  
  1453.       count = 0;
  1454.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  1455.       for (x = (yyn < 0 ? -yyn : 0);
  1456.            x < (sizeof(yytname) / sizeof(char *)); x++)
  1457.         if (yycheck[x + yyn] == x)
  1458.           size += strlen(yytname[x]) + 15, count++;
  1459.       msg = (char *) malloc(size + 15);
  1460.       if (msg != 0)
  1461.         {
  1462.           strcpy(msg, "parse error");
  1463.  
  1464.           if (count < 5)
  1465.         {
  1466.           count = 0;
  1467.           for (x = (yyn < 0 ? -yyn : 0);
  1468.                x < (sizeof(yytname) / sizeof(char *)); x++)
  1469.             if (yycheck[x + yyn] == x)
  1470.               {
  1471.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  1472.             strcat(msg, yytname[x]);
  1473.             strcat(msg, "'");
  1474.             count++;
  1475.               }
  1476.         }
  1477.           yyerror(msg);
  1478.           free(msg);
  1479.         }
  1480.       else
  1481.         yyerror ("parse error; also virtual memory exceeded");
  1482.     }
  1483.       else
  1484. #endif /* YYERROR_VERBOSE */
  1485.     yyerror("parse error");
  1486.     }
  1487.  
  1488.   goto yyerrlab1;
  1489. yyerrlab1:   /* here on error raised explicitly by an action */
  1490.  
  1491.   if (yyerrstatus == 3)
  1492.     {
  1493.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  1494.  
  1495.       /* return failure if at end of input */
  1496.       if (yychar == YYEOF)
  1497.     YYABORT;
  1498.  
  1499. #if YYDEBUG != 0
  1500.       if (yydebug)
  1501.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  1502. #endif
  1503.  
  1504.       yychar = YYEMPTY;
  1505.     }
  1506.  
  1507.   /* Else will try to reuse lookahead token
  1508.      after shifting the error token.  */
  1509.  
  1510.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  1511.  
  1512.   goto yyerrhandle;
  1513.  
  1514. yyerrdefault:  /* current state does not do anything special for the error token. */
  1515.  
  1516. #if 0
  1517.   /* This is wrong; only states that explicitly want error tokens
  1518.      should shift them.  */
  1519.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  1520.   if (yyn) goto yydefault;
  1521. #endif
  1522.  
  1523. yyerrpop:   /* pop the current state because it cannot handle the error token */
  1524.  
  1525.   if (yyssp == yyss) YYABORT;
  1526.   yyvsp--;
  1527.   yystate = *--yyssp;
  1528. #ifdef YYLSP_NEEDED
  1529.   yylsp--;
  1530. #endif
  1531.  
  1532. #if YYDEBUG != 0
  1533.   if (yydebug)
  1534.     {
  1535.       short *ssp1 = yyss - 1;
  1536.       fprintf (stderr, "Error: state stack now");
  1537.       while (ssp1 != yyssp)
  1538.     fprintf (stderr, " %d", *++ssp1);
  1539.       fprintf (stderr, "\n");
  1540.     }
  1541. #endif
  1542.  
  1543. yyerrhandle:
  1544.  
  1545.   yyn = yypact[yystate];
  1546.   if (yyn == YYFLAG)
  1547.     goto yyerrdefault;
  1548.  
  1549.   yyn += YYTERROR;
  1550.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  1551.     goto yyerrdefault;
  1552.  
  1553.   yyn = yytable[yyn];
  1554.   if (yyn < 0)
  1555.     {
  1556.       if (yyn == YYFLAG)
  1557.     goto yyerrpop;
  1558.       yyn = -yyn;
  1559.       goto yyreduce;
  1560.     }
  1561.   else if (yyn == 0)
  1562.     goto yyerrpop;
  1563.  
  1564.   if (yyn == YYFINAL)
  1565.     YYACCEPT;
  1566.  
  1567. #if YYDEBUG != 0
  1568.   if (yydebug)
  1569.     fprintf(stderr, "Shifting error token, ");
  1570. #endif
  1571.  
  1572.   *++yyvsp = yylval;
  1573. #ifdef YYLSP_NEEDED
  1574.   *++yylsp = yylloc;
  1575. #endif
  1576.  
  1577.   yystate = yyn;
  1578.   goto yynewstate;
  1579. }
  1580. #line 440 "xbwparser.y"
  1581.  
  1582.  
  1583. symrec *sym_table = (symrec *)0;
  1584.  
  1585. symrec *putsym(char *sym_name, int sym_type){
  1586.   /*{{{  */
  1587.   symrec *ptr;
  1588.   ptr=(symrec*)malloc(sizeof(symrec));
  1589.   ptr->malloc_used=0;
  1590.   ptr->name=(char*)malloc(strlen(sym_name)+1);
  1591.   strcpy(ptr->name,sym_name);
  1592.   ptr->type=sym_type;
  1593.   ptr->value.strp = 0;
  1594.   ptr->value.var = 0;
  1595.   ptr->value.ivar = 0;
  1596.   ptr->next=(struct symrec *)sym_table;
  1597.   sym_table=ptr;
  1598.   return ptr;
  1599.   };
  1600.   /*}}}  */
  1601. symrec *getsym(char *sym_name){
  1602.   /*{{{  */
  1603.   symrec *ptr;
  1604.   for (ptr=sym_table;ptr!= (symrec *)0; ptr=(symrec *)ptr->next){
  1605.     if (strcmp(ptr->name,sym_name)==0){
  1606.       return(ptr);
  1607.       };
  1608.     };
  1609.   
  1610.   return(NULL);
  1611.   };
  1612.   /*}}}  */
  1613.  
  1614. int put_lval_end_command(void){
  1615.   /*{{{  */
  1616.   return(ENDFILE);
  1617.   };
  1618.   
  1619.   /*}}}  */
  1620. int put_lval_double(double dd){
  1621.   /*{{{  */
  1622.   yylval.val = dd;
  1623.   return(NUM);
  1624.   };
  1625.   
  1626.   /*}}}  */
  1627. int put_lval_string(char *str){
  1628.   /*{{{  */
  1629.   strcpy((char*)&scratch[scratchno][0],str);
  1630.   yylval.strp=(char*)&scratch[scratchno][0];
  1631.   scratchno++;
  1632.   if (scratchno>=scratchmax){
  1633.     scratchno=0;
  1634.     };
  1635.   return(STR);
  1636.   };
  1637.   
  1638.   /*}}}  */
  1639. int put_lval_numvar(char *varname){
  1640.    /*{{{  */
  1641.    symrec *s = getsym(varname);
  1642.    if (s==0){
  1643.      s=putsym(varname,NUMVAR);
  1644.      s->malloc_used=0;
  1645.      };
  1646.    yylval.tptr = s;
  1647.    return(s->type);
  1648.    };
  1649.    
  1650.    /*}}}  */
  1651. int put_lval_nullptr(void){
  1652.    /*{{{  */
  1653.    return(NULLPTR);
  1654.    };
  1655.    
  1656.    /*}}}  */
  1657. int put_lval_strvar(char *varname){
  1658.   /*{{{  */
  1659.   symrec *s = getsym(varname);
  1660.   if (s==0){
  1661.     s=putsym(varname,STRVAR);
  1662.     s->malloc_used=1;
  1663.     s->value.strp = (char*)malloc(200);
  1664.     };
  1665.   yylval.tptr = s;
  1666.   return(s->type);
  1667.   };
  1668.   
  1669.   /*}}}  */
  1670. int put_lval_pointer(char type, char *str){
  1671.   /*{{{  */
  1672.   strcpy((char*)&scratch[scratchno][0],str);
  1673.   yylval.strp=(char*)&scratch[scratchno][0];
  1674.   scratchno++;
  1675.   if (scratchno>=scratchmax){
  1676.     scratchno=0;
  1677.     };
  1678.   switch(type){
  1679.     case 'p': /*ptr*/  return(NPTR);
  1680.     case 's': /*str*/  return(SPTR);
  1681.     case 'i': /*int*/  return(IPTR);
  1682.     case 'd': /*dbl*/  return(DPTR);
  1683.     default: XbWFSy_bf1_printf("\nERROR: illegal pointer type");
  1684.              return(STR);
  1685.              break;
  1686.     };
  1687.   };
  1688.   
  1689.   /*}}}  */
  1690. int put_lval_num_macropar(int no){
  1691.    /*{{{  */
  1692.    yylval.val = (double)((int)macpar[macparlvl-1][no]);
  1693.    return(NUM);
  1694.    };
  1695.    
  1696.    /*}}}  */
  1697. int put_lval_str_macropar(int no){
  1698.    /*{{{  */
  1699.    yylval.strp = (char *)macpar[macparlvl-1][no];
  1700.    return(STR);
  1701.    };
  1702.    
  1703.    /*}}}  */
  1704. int put_lval_var(char *varname){
  1705.   /*{{{  */
  1706.   symrec *s = getsym(varname);
  1707.   if (s==0){
  1708.     s=putsym(varname,NUMVAR);
  1709.     s->malloc_used=0;
  1710.     };
  1711.   yylval.tptr = s;
  1712.   return(s->type);
  1713.   return(0);
  1714.   };
  1715.   
  1716.   /*}}}  */
  1717. int put_lval_isvar(char *varname){
  1718.   /*{{{  */
  1719.   symrec *s = getsym(varname);
  1720.   if (s==0){
  1721.     return(0);
  1722.     };
  1723.   return(1);
  1724.   };
  1725.   
  1726.   /*}}}  */
  1727. int put_lval_if(void){
  1728.   /*{{{  */
  1729.   return(IF);
  1730.   };
  1731.   
  1732.   /*}}}  */
  1733. int put_lval_then(void){
  1734.   /*{{{  */
  1735.   return(THEN);
  1736.   };
  1737.   
  1738.   /*}}}  */
  1739. int yyerror(char*s){
  1740.   XbWFSy_bf_printf("\nERROR in statement after %s:\n",func_lastname);
  1741.   printf(s);
  1742.   errcnt++;
  1743.   return(0);
  1744.   };
  1745.  
  1746. char *fltoa(double dd){
  1747.   static char sstr[100];
  1748.   sprintf(sstr,"%d",(int)dd);
  1749.   return(sstr);
  1750.   };
  1751.  
  1752. void fpar_add(
  1753.   /*{{{  */
  1754.                    int type,
  1755.                    char *txt,
  1756.                    double dval,
  1757.                    int ival,
  1758.                    XbWDDb_DbIVar *ptr){
  1759.   fpar_count++;
  1760.   switch (type){
  1761.     case 1: fpar[fpar_count]= (void*)txt;
  1762.             fpart[fpar_count]= XbWDMf_StrPar;
  1763.             break;
  1764.     case 2: fpar[fpar_count]= (void*)((int)dval);
  1765.             fpard[fpar_count]= dval;
  1766.             fpart[fpar_count]= XbWDMf_IntPar;
  1767.             break;
  1768.     case 3: fpar[fpar_count]= (void*)((int)ival);
  1769.             fpard[fpar_count]= ival;
  1770.             fpart[fpar_count]= XbWDMf_IntPar;
  1771.             break;
  1772.     case 10: fpar[fpar_count]= (void*)(ptr);
  1773.             fpart[fpar_count]= XbWDMf_VLPar;
  1774.             break;
  1775.     case 11:{
  1776.               /*{{{  */
  1777.               XbWDDb_DbIVar  *ac_gp = ptr;
  1778.               char *dd;
  1779.               if ((ac_gp = (XbWDDb_DbIVar*)XbWFDb_VarInh(ac_gp,0,NULL,1)) == NULL) {
  1780.                 XbWFSy_bf1_printf("\nERROR: cannot get pointer parameter!");
  1781.                 errcnt = errcnt+1;
  1782.                 return;
  1783.                 };
  1784.               switch( ac_gp->tp & XbWDDb_Typ) {
  1785.                 case XbWDDb_Str:  dd = (char*)&(((XbWDDb_DbIStr  *)ac_gp)->nmi[ac_gp->tp & XbWDDb_NLen]); break;
  1786.                 default:
  1787.                   XbWFSy_bf1_printf("\nERROR: cannot get pointer parameter!");
  1788.                   errcnt = errcnt+1;
  1789.                   return;
  1790.                 };
  1791.               fpar[fpar_count]= (void*)(dd);
  1792.               fpart[fpar_count]= XbWDMf_VIPar;
  1793.               printf("\npar. %d ((str)*) = %d",fpar_count,(int)ptr);
  1794.               };
  1795.               /*}}}  */
  1796.     case 12:{
  1797.               /*{{{  */
  1798.               XbWDDb_DbIVar  *ac_gp = ptr;
  1799.               int dd;
  1800.               if ((ac_gp = (XbWDDb_DbIVar*)XbWFDb_VarInh(ac_gp,0,NULL,1)) == NULL) {
  1801.                 XbWFSy_bf1_printf("\nERROR: cannot get pointer parameter!");
  1802.                 errcnt = errcnt+1;
  1803.                 return;
  1804.                 };
  1805.               switch( ac_gp->tp & XbWDDb_Typ) {
  1806.                 case XbWDDb_Int:  dd = ((XbWDDb_DbIInt  *)ac_gp)->inh; break;
  1807.                 default:
  1808.                   XbWFSy_bf1_printf("\nERROR: cannot get pointer parameter!");
  1809.                   errcnt = errcnt+1;
  1810.                   return;
  1811.                 };
  1812.               fpar[fpar_count]= (void*)(dd);
  1813.               fpart[fpar_count]= XbWDMf_VPPar;
  1814.               printf("\npar. %d ((int)*) = %d",fpar_count,(int)ptr);
  1815.               };
  1816.               /*}}}  */
  1817.             break;
  1818.     case 13: fpar[fpar_count]= (void*)(ptr);
  1819.             fpart[fpar_count]= XbWDMf_VIPar;
  1820.             break;
  1821.     };
  1822.   };
  1823.   /*}}}  */
  1824. double fpar_call(char *name){
  1825.   /*{{{  */
  1826.   double result=0;
  1827.   fpar[0]=(void*)fpar_count;
  1828.   fpart[0]=XbWDMf_AnzPar;
  1829.   if (name[1]==0){
  1830.     switch(name[0]){
  1831.       case 'h':
  1832.         printf("\n");
  1833.         XbWFSy_bf_printf("%s","XbW Commands:");
  1834.         printf("\n");
  1835.         fpar[0]=-1;
  1836.         fpar[1]=(void*)"s";     XbWFDb_AppStr(&fpar,&fpart);
  1837.         fpar[1]=(void*)"i";     XbWFDb_AppInt(&fpar,&fpart);
  1838.         fpar[1]=(void*)"c";     XbWFDb_AppCSt(&fpar,&fpart);
  1839.         fpar[1]=(void*)"d";     XbWFDb_AppDblVal(&fpar,0);
  1840.         printf("\n");
  1841.         printf("\n");
  1842.         printf("\n");
  1843.         break;
  1844.   
  1845.       case 's': result = XbWFDb_AppStr(&fpar,&fpart); break;
  1846.       case 'i': result = XbWFDb_AppInt(&fpar,&fpart); break;
  1847.       case 'c': result = XbWFDb_AppCSt(&fpar,&fpart); break;
  1848.       case 'o': result = XbWFDb_AppObj(&fpar,&fpart); break;
  1849.       case 'd': result = XbWFDb_AppDblVal(&fpar,fpard[2]); break;
  1850.       case 'x': result = XbWFMf_StrtHookCmd(&fpar,&fpart); break;
  1851.       default: goto errleave;
  1852.       };
  1853.     goto leave;
  1854.     }
  1855.   else {
  1856.     if (strcmp(name,"bg")==0){
  1857.       if (fpart[3] == XbWDMf_IntPar){
  1858.         /*{{{  */
  1859.         if ( (double)((int)fpar[3]) == (double)fpard[3]){
  1860.           result = XbWFDb_AppBg(&fpar,&fpart);
  1861.           }
  1862.         else {
  1863.           char sstr[100];
  1864.           sprintf(sstr,"%40.20f",fpard[3]);
  1865.           fpart[3]= XbWDMf_DblPar;
  1866.           fpar[3]=&sstr;
  1867.           result = XbWFDb_AppBg(&fpar,&fpart);
  1868.           };
  1869.         /*}}}  */
  1870.         }
  1871.       else {
  1872.         result = XbWFDb_AppBg(&fpar,&fpart);
  1873.         };
  1874.       goto leave; };
  1875.     if (strcmp(name,"cn")==0){ result = XbWFDb_AppChn(&fpar,&fpart); goto leave; };
  1876.     if (strcmp(name,"eg")==0){ result = XbWFDb_AppGPtr(&fpar,&fpart); goto leave; };
  1877.     if (strcmp(name,"pn")==0){ result = XbWFDb_AppNPtr(&fpar,&fpart); goto leave; };
  1878.     if (strcmp(name,"tk")==0){ result = XbWFDb_AppTsk(&fpar,&fpart); goto leave; };
  1879.     if (strcmp(name,"ff")==0){ result = XbWFDb_AppFloat(&fpar,&fpart); goto leave; };
  1880.     if (strcmp(name,"lt")==0){ result = XbWFDb_AppLight(&fpar,&fpart); goto leave; };
  1881.     if (strcmp(name,"ng")==0){ result = XbWFDb_NewGrp(&fpar,&fpart); goto leave; };
  1882.     if (strcmp(name,"wdw")==0){ result = XbWFDb_AppWdw(&fpar,&fpart); goto leave; };
  1883.     if (strcmp(name,"End")==0){
  1884.       end_include();
  1885.       yyclearin;
  1886.       macparlvl--;
  1887.       if (macparlvl < 1){
  1888.         macparlvl = 1;
  1889.         };
  1890.       goto leave;
  1891.       };
  1892.   
  1893.     if (strcmp(name,"sin")==0){         result = sin(fpard[1]); goto leave; };
  1894.     if (strcmp(name,"cos")==0){         result = cos(fpard[1]); goto leave; };
  1895.     if (strcmp(name,"atan")==0){        result = atan(fpard[1]); goto leave; };
  1896.     if (strcmp(name,"log")==0){         result = log(fpard[1]); goto leave; };
  1897.     if (strcmp(name,"exp")==0){         result = exp(fpard[1]); goto leave; };
  1898.     if (strcmp(name,"sqrt")==0){        result = sqrt(fpard[1]); goto leave; };
  1899.   
  1900.     if (strcmp(name,"Array")==0){       result = XbWFDb_CreateArray(&fpar,&fpart); goto leave; };
  1901.   
  1902.     if (strcmp(name,"DrawAllWdw")==0){           XbWFWd_DrawAll(); goto leave; };
  1903.     if (strcmp(name,"IconAllWdw")==0){           XbWFWd_IconAll(); goto leave; };
  1904.     if (strcmp(name,"IconizeWdw")==0){           XbWFWd_Iconize(&fpar); goto leave; };
  1905.     if (strcmp(name,"SelectWdw")==0){   result = XbWFWd_Select(&fpar); goto leave; };
  1906.     if (strcmp(name,"DrawWdw")==0){              XbWFWd_DrawP(); goto leave; };
  1907.   
  1908.     if (strcmp(name,"NewProject")==0){  result = XbWFDb_MarkPrj(&fpar,&fpart); goto leave; };
  1909.     if (strcmp(name,"NewGroup")==0){    result = XbWFDb_MarlGrp(&fpar); goto leave; };
  1910.   
  1911.     if (strcmp(name,"Malloc")==0){      result = XbWFDb_CreaSys(&fpar); goto leave; };
  1912.     if (strcmp(name,"Exit")==0){                 XbWFSy_SysStop(); goto leave; };
  1913.   
  1914.     if (strcmp(name,"DumpFile")==0){    result = XbWFDb_DbgSys(&fpar); goto leave; };
  1915.     if (strcmp(name,"WriteFile")==0){   result = XbWFDb_WrTable(&fpar,&fpart); goto leave; };
  1916.     if (strcmp(name,"ReadFile")==0){    result = XbWFDb_RdTable(&fpar,&fpart); goto leave; };
  1917.     if (strcmp(name,"EditFile")==0){    result = XbWFDb_OpenSys(&fpar,&fpart); goto leave; };
  1918.   
  1919.     if (strcmp(name,"Message")==0){              XbWFTb_PutMessage(&fpar); goto leave; };
  1920.     if (strcmp(name,"Alarm")==0){                XbWFTb_PutAlarm(&fpar); goto leave; };
  1921.     if (strcmp(name,"Error")==0){                XbWFTb_PutError(&fpar); goto leave; };
  1922.     if (strcmp(name,"WaitForButton")==0){        XbWSMs_WButtUpDn(); goto leave; };
  1923.     if (strcmp(name,"AnswPReq")==0){    result = XbWFTb_AnswerPopUpReq(&fpar); goto leave; };
  1924.     if (strcmp(name,"PopUpBox")==0){             XbWFTb_PopUpBox(&fpar); goto leave; };
  1925.     if (strcmp(name,"PopUpMSG")==0){    result = XbWSPu_Msg(&fpar,&fpart); goto leave; };
  1926.     if (strcmp(name,"PopUpDIR")==0){    result = XbWSPu_Dir(&fpar,&fpart); goto leave; };
  1927.     if (strcmp(name,"PopEditDir")==0){  result = XbWSPu_DirEd(&fpar,&fpart); goto leave; };
  1928.   
  1929.     if (strcmp(name,"LockWdw")==0){              XbWFWd_LockON(); goto leave; };
  1930.     if (strcmp(name,"LockWdwOnClick")==0){       XbWFWd_LockEdit(); goto leave; };
  1931.     if (strcmp(name,"UnLockWdw")==0){            XbWFWd_LockOFF(); goto leave; };
  1932.   
  1933.     if (strcmp(name,"MFXGroup")==0){    result = XbWFMx_RWGroup(&fpar,&fpart); goto leave; };
  1934.   
  1935.     if (strcmp(name,"EditObj")==0){     result = XbWFOb_EditOnly(&fpar); goto leave; };
  1936.     if (strcmp(name,"DispObj")==0){     result = XbWFOb_DispOnly(&fpar); goto leave; };
  1937.   
  1938.     if (strcmp(name,"ResizeWdw")==0){            XbWSWd_Resize(&fpar); goto leave; };
  1939.     if (strcmp(name,"MoveWdw")==0){              XbWSWd_Move(); goto leave; };
  1940.     if (strcmp(name,"ClrScr")==0){               XbWFTb_ClrScr(); goto leave; };
  1941.     if (strcmp(name,"MoveObjToWdw")==0){result = XbWFOb_MovToWdw(&fpar,&fpart); goto leave; };
  1942.     if (strcmp(name,"MouseWarp")==0){   result = XbWFTb_MouseWarp(&fpar,&fpart); goto leave; };
  1943.     if (strcmp(name,"XFlush")==0){               XbWFSY_DoXFlush(); goto leave; };
  1944.     if (strcmp(name,"RootWindow")==0){  result = XbWSSy_RootWindow(&fpar,&fpart); goto leave; };
  1945.     if (strcmp(name,"LoadFont")==0){    result = XbWFDb_LoadFont(&fpar,&fpart); goto leave; };
  1946.   
  1947.     if (strcmp(name,"PrjName")==0){     result = XbWFDb_PrjName(&fpar,&fpart); goto leave; };
  1948.     if (strcmp(name,"PackString")==0){  result = XbWFTb_PackStr(&fpar,&fpart); goto leave; };
  1949.     if (strcmp(name,"FFileNames")==0){  result = XbWSOS_FilDir(&fpar); goto leave; };
  1950.     if (strcmp(name,"GetWGrp")==0){     result = XbWFDb_StorGrpn(&fpar,&fpart); goto leave; };
  1951.     if (strcmp(name,"DebugMfxON")==0){           XbWFMx_DbgON(); goto leave; };
  1952.     if (strcmp(name,"DebugMtaON")==0){           XbWFTb_DbgMta(); goto leave; };
  1953.     if (strcmp(name,"AutoCloseON")==0){          XbWFTb_AClosON(); goto leave; };
  1954.     if (strcmp(name,"AutoCloseOFF")==0){         XbWFTb_AClosOFF(); goto leave; };
  1955.     if (strcmp(name,"RedrawON")==0){             XbWFTb_RedrawON(); goto leave; };
  1956.     if (strcmp(name,"RedrawOFF")==0){            XbWFTb_RedrawOFF(); goto leave; };
  1957.   
  1958.     if (strcmp(name,"Unlink")==0){      result = XbWFTb_Unlink(&fpar); goto leave; };
  1959.     if (strcmp(name,"Task")==0){        result = XbWSOS_SpwnStd(&fpar,&fpart); goto leave; };
  1960.     if (strcmp(name,"ChDir")==0){       result = XbWFSy_ChDir(&fpar,&fpart); goto leave; };
  1961.     if (strcmp(name,"LoadObjIcon")==0){ result = XbWSSy_ObjLoadIcon(&fpar,&fpart); goto leave; };
  1962.   
  1963.     if (strcmp(name,"SelectPrj")==0){  result = XbWFDb_SetProject(&fpar,&fpart); goto leave; };
  1964.   
  1965.     };
  1966.   errleave:;
  1967.   XbWFSy_bf_printf("\nERROR: function %s not recognized.",name); errcnt=errcnt+1;
  1968.   fpar_count=0;
  1969.   return(0);
  1970.   leave:;
  1971.   strcpy(func_lastname,name);
  1972.   fpar_count=0;
  1973.   return(result);
  1974.   };
  1975.   /*}}}  */
  1976. int macpar_call(char *name){
  1977.   /*{{{  */
  1978.   int ii;
  1979.   int result=0;
  1980.   fpar[0]=(void*)fpar_count;
  1981.   fpart[0]=XbWDMf_AnzPar;
  1982.   
  1983.   for (ii=0;ii<=fpar_count;ii++){
  1984.     macpar[macparlvl][ii]=fpar[ii];
  1985.     macpar_type[macparlvl][ii]=fpart[ii];
  1986.     };
  1987.   
  1988.   macparlvl++;
  1989.   if (macparlvl >= MAX_mac_lvl){
  1990.     macparlvl= MAX_mac_lvl;
  1991.     };
  1992.   
  1993.   if (begin_include(name)==0){
  1994.     XbWFSy_bf_printf("\nERROR: macro file %s not found;",name);
  1995.     };
  1996.   yyclearin;
  1997.   
  1998.   fpar_count=0;
  1999.   strcpy(func_lastname,name);
  2000.   return(result);
  2001.   };
  2002.   /*}}}  */
  2003.  
  2004.  
  2005. void  XbWFMf_ReadMF(char *filename){
  2006.   /*{{{  */
  2007.   
  2008.   extern FILE *yyin;
  2009.   
  2010.   #ifdef YYDEBUG
  2011.   yydebug=0;
  2012.   #endif
  2013.   errcnt=0;
  2014.   if (filename == NULL) {
  2015.     yyin = stdin;
  2016.     }
  2017.   else {
  2018.     int ii;
  2019.     char sstr[200];
  2020.     for (ii=0;ii<strlen(filename);ii++){
  2021.       if (filename[ii]=='\\'){ filename[ii]='/'; };
  2022.       };
  2023.     if (filename[0]=='@'){
  2024.       strcpy(filename,(char *)&filename[1]);
  2025.       };
  2026.     yyin = fopen(filename, "r" );
  2027.     if (yyin==NULL){
  2028.       sprintf(sstr,"%s.mta",filename);
  2029.       yyin = fopen( sstr, "r" );
  2030.       if (yyin==NULL){
  2031.         sprintf(sstr,"/xw/x/%s.mta",filename);
  2032.         yyin = fopen( sstr, "r" );
  2033.         if (yyin==NULL){
  2034.           sprintf(sstr,"%s.xwx",filename);
  2035.           yyin = fopen( sstr, "r" );
  2036.           if (yyin==NULL){
  2037.             XbWFSy_bf_printf("\nERROR: cannot open file %s !",filename);
  2038.             return;
  2039.             };
  2040.           };
  2041.         };
  2042.       };
  2043.     };
  2044.   
  2045.   yyparse();
  2046.   if (yyin != stdin){
  2047.     fclose(yyin);
  2048.     };
  2049.   if (errcnt){ printf("\nOOPS! There were %d parser errors!",errcnt); }
  2050.   else {        XbWFSy_bf1_printf("\nFile syntax okay."); };
  2051.   };
  2052.   /*}}}  */
  2053.  
  2054. int XbWFMf_ParseMakro(char *macro){
  2055.   /*{{{  */
  2056.   
  2057.   #ifdef YYDEBUG
  2058.   yydebug=1;
  2059.   #endif
  2060.   
  2061.   errcnt=0;
  2062.   
  2063.   begin_macro(macro);
  2064.   yyparse();
  2065.   
  2066.   if (errcnt){ printf("\nOOPS! There were %d parser errors!",errcnt); }
  2067.   else {        XbWFSy_bf1_printf("\nMacro syntax okay."); };
  2068.   
  2069.   return(0);
  2070.   };
  2071.   /*}}}  */
  2072.  
  2073. void  XbWFMf_StartMF(char *filename){
  2074.   /*{{{  */
  2075.   
  2076.   char buffer[10000];
  2077.   
  2078.   extern FILE *yyin;
  2079.   
  2080.   #ifdef YYDEBUG
  2081.   yydebug=0;
  2082.   #endif
  2083.   
  2084.   if (filename == NULL) {
  2085.     XbWFSy_bf1_printf("\nERROR: could not open file (null)!");
  2086.     return;
  2087.     }
  2088.   else {
  2089.     int ii;
  2090.     char sstr[200];
  2091.     for (ii=0;ii<strlen(filename);ii++){
  2092.       if (filename[ii]=='\\'){ filename[ii]='/'; };
  2093.       };
  2094.     if (filename[0]=='@'){
  2095.       strcpy(filename,(char *)&filename[1]);
  2096.       };
  2097.     yyin = fopen(filename, "r" );
  2098.     if (yyin==NULL){
  2099.       sprintf(sstr,"%s.mta",filename);
  2100.       yyin = fopen( sstr, "r" );
  2101.       if (yyin==NULL){
  2102.         sprintf(sstr,"/xw/x/%s.mta",filename);
  2103.         yyin = fopen( sstr, "r" );
  2104.         if (yyin==NULL){
  2105.           XbWFSy_bf_printf("\nERROR: cannot open file %s !",filename);
  2106.           return;
  2107.           };
  2108.         };
  2109.       };
  2110.     };
  2111.   
  2112.   fread(buffer,1,9999,yyin);
  2113.   
  2114.   if (strstr(buffer,"Malloc") != NULL){
  2115.     fseek(yyin,0,SEEK_SET);
  2116.     fread(buffer,1,((char*)strstr(buffer,"Malloc")-1-(char*)buffer),yyin);
  2117.     begin_macro(buffer);
  2118.     yyparse();
  2119.     }
  2120.   else {
  2121.     XbWFSy_bf1_printf("\nERROR: Malloc(<mem>); needed at start of first file!");
  2122.     };
  2123.   fclose(yyin);
  2124.   };
  2125.   /*}}}  */
  2126.  
  2127.